package com.health.system.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author 黄叶
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("用户编辑实体类")
public class ModifyUserVo {
    @NotNull(message = "用户id不能为空")
    @ApiModelProperty("用户id")
    private Long id;

    @NotBlank(message = "昵称不能为空")
    @ApiModelProperty("用户昵称")
    private String nickName;

    @ApiModelProperty("用户拥有的角色")
    private List<Long> roleIds;
}
